package com.spic.business.home.controller;

import com.spic.business.home.service.HomeService;
import com.spic.common.core.web.controller.BaseController;
import com.spic.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
public  class HomeController extends BaseController
{
    @Autowired
    private HomeService homeService;
    @GetMapping("/list")
    public AjaxResult getHomeList(){
        return AjaxResult.success(homeService.getHomeList());
    }
}
